<!DOCTYPE html>
<html>
<head>
	<title> Pixelfieldwars </title>
	<script type="text/javascript" charset="utf-8" src="http://pixelfieldwars.googlecode.com/svn/trunk/color.js"></script>
	<script type="text/javascript" charset="utf-8" src="http://pixelfieldwars.googlecode.com/svn/trunk/input.js"></script>
	<script type="text/javascript" charset="utf-8" src="http://pixelfieldwars.googlecode.com/svn/trunk/player.js"></script>
	<script type="text/javascript" charset="utf-8" src="http://pixelfieldwars.googlecode.com/svn/trunk/game.js"></script>
	
	<style type="text/css">

	</style>
</head>
<body>

<canvas id="view" width="800" height="800" style="border:1px solid #c3c3c3; 
		margin-left: auto;
		margin-right: auto;
		margin-top: auto;
		display: block;">
	Your browser does not support the HTML5 canvas tag. Go, get Firefox!
</canvas>

<div>
	<h1>Controls:</h1>
	<b>Player 1: IJKL <br \></b>
	<b>Player 2: WASD<br \></b>
	<b>Press Enter to start/reset<br \></b>
</div>

<script>
	Input.initialize();
	Game.initialize();

	Game.isRunning = false;

	Game.run = function() {
	setInterval(function() {
	  Game.draw();
	  Game.update();
	}, 1000 / Game.fps);
	};     

	Game.run();
</script>

</body>
</html>

